/*
@hehung
2023-7-15
email: 1398660197@qq.com
wechat: hehung95
reproduced and please indicate the source @hehung
*/

#ifndef APP_ADC_H_
#define APP_ADC_H_

#include "app_common.h"


typedef enum
{
	JOYSTICK_NONE = 0,
	JOYSTICK_LEFT,
	JOYSTICK_RIGHT,
	JOYSTICK_UP,
	JOYSTICK_DOWN,
	JOYSTICK_PRESSED
} e_joystick_cmd_t;

/* joystick x and y value */
typedef struct
{
	uint16_t x;
	uint16_t y;
	uint16_t z;
} s_joystick_t;


extern void Adc_Init(void);

extern void Joystick_RunningEntry(void);
extern e_joystick_cmd_t Joystick_GetCmd(void);

extern void Mq5_RunningEntry(void);
extern uint32_t Mq5_GetGasPpmValue(void);

#endif /* APP_ADC_H_ */
